\(\int \frac {\cosh (a+\frac {b}{x^2})}{x^3} \, dx\) [33]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [B] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 12, antiderivative size = 15 \[ \int \frac {\cosh \left (a+\frac {b}{x^2}\right )}{x^3} \, dx=-\frac {\sinh \left (a+\frac {b}{x^2}\right )}{2 b} \]

[Out]

-1/2*sinh(a+b/x^2)/b

Rubi [A] (verified)

Time = 0.01 (sec) , antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {5429, 2717} \[ \int \frac {\cosh \left (a+\frac {b}{x^2}\right )}{x^3} \, dx=-\frac {\sinh \left (a+\frac {b}{x^2}\right )}{2 b} \]

[In]

Int[Cosh[a + b/x^2]/x^3,x]

[Out]

-1/2*Sinh[a + b/x^2]/b

Rule 2717

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 5429

Int[((a_.) + Cosh[(c_.) + (d_.)*(x_)^(n_)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simpli
fy[(m + 1)/n] - 1)*(a + b*Cosh[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IntegerQ[Sim
plify[(m + 1)/n]] && (EqQ[p, 1] || EqQ[m, n - 1] || (IntegerQ[p] && GtQ[Simplify[(m + 1)/n], 0]))

Rubi steps \begin{align*} \text {integral}& = -\left (\frac {1}{2} \text {Subst}\left (\int \cosh (a+b x) \, dx,x,\frac {1}{x^2}\right )\right ) \\ & = -\frac {\sinh \left (a+\frac {b}{x^2}\right )}{2 b} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.00 (sec) , antiderivative size = 15, normalized size of antiderivative = 1.00 \[ \int \frac {\cosh \left (a+\frac {b}{x^2}\right )}{x^3} \, dx=-\frac {\sinh \left (a+\frac {b}{x^2}\right )}{2 b} \]

[In]

Integrate[Cosh[a + b/x^2]/x^3,x]

[Out]

-1/2*Sinh[a + b/x^2]/b

Maple [A] (verified)

Time = 0.06 (sec) , antiderivative size = 14, normalized size of antiderivative = 0.93

method result size
derivativedivides \(-\frac {\sinh \left (a +\frac {b}{x^{2}}\right )}{2 b}\) \(14\)
default \(-\frac {\sinh \left (a +\frac {b}{x^{2}}\right )}{2 b}\) \(14\)
parallelrisch \(-\frac {\sinh \left (\frac {a \,x^{2}+b}{x^{2}}\right )}{2 b}\) \(18\)
risch \(-\frac {{\mathrm e}^{\frac {a \,x^{2}+b}{x^{2}}}}{4 b}+\frac {{\mathrm e}^{-\frac {a \,x^{2}+b}{x^{2}}}}{4 b}\) \(37\)
meijerg \(-\frac {\cosh \left (a \right ) \sinh \left (\frac {b}{x^{2}}\right )}{2 b}+\frac {\sqrt {\pi }\, \sinh \left (a \right ) \left (\frac {1}{\sqrt {\pi }}-\frac {\cosh \left (\frac {b}{x^{2}}\right )}{\sqrt {\pi }}\right )}{2 b}\) \(40\)

[In]

int(cosh(a+b/x^2)/x^3,x,method=_RETURNVERBOSE)

[Out]

-1/2*sinh(a+b/x^2)/b

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.13 \[ \int \frac {\cosh \left (a+\frac {b}{x^2}\right )}{x^3} \, dx=-\frac {\sinh \left (\frac {a x^{2} + b}{x^{2}}\right )}{2 \, b} \]

[In]

integrate(cosh(a+b/x^2)/x^3,x, algorithm="fricas")

[Out]

-1/2*sinh((a*x^2 + b)/x^2)/b

Sympy [A] (verification not implemented)

Time = 0.53 (sec) , antiderivative size = 22, normalized size of antiderivative = 1.47 \[ \int \frac {\cosh \left (a+\frac {b}{x^2}\right )}{x^3} \, dx=\begin {cases} - \frac {\sinh {\left (a + \frac {b}{x^{2}} \right )}}{2 b} & \text {for}\: b \neq 0 \\- \frac {\cosh {\left (a \right )}}{2 x^{2}} & \text {otherwise} \end {cases} \]

[In]

integrate(cosh(a+b/x**2)/x**3,x)

[Out]

Piecewise((-sinh(a + b/x**2)/(2*b), Ne(b, 0)), (-cosh(a)/(2*x**2), True))

Maxima [A] (verification not implemented)

none

Time = 0.18 (sec) , antiderivative size = 13, normalized size of antiderivative = 0.87 \[ \int \frac {\cosh \left (a+\frac {b}{x^2}\right )}{x^3} \, dx=-\frac {\sinh \left (a + \frac {b}{x^{2}}\right )}{2 \, b} \]

[In]

integrate(cosh(a+b/x^2)/x^3,x, algorithm="maxima")

[Out]

-1/2*sinh(a + b/x^2)/b

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 33 vs. \(2 (13) = 26\).

Time = 0.26 (sec) , antiderivative size = 33, normalized size of antiderivative = 2.20 \[ \int \frac {\cosh \left (a+\frac {b}{x^2}\right )}{x^3} \, dx=-\frac {e^{\left (\frac {a x^{2} + b}{x^{2}}\right )} - e^{\left (-\frac {a x^{2} + b}{x^{2}}\right )}}{4 \, b} \]

[In]

integrate(cosh(a+b/x^2)/x^3,x, algorithm="giac")

[Out]

-1/4*(e^((a*x^2 + b)/x^2) - e^(-(a*x^2 + b)/x^2))/b

Mupad [B] (verification not implemented)

Time = 1.53 (sec) , antiderivative size = 13, normalized size of antiderivative = 0.87 \[ \int \frac {\cosh \left (a+\frac {b}{x^2}\right )}{x^3} \, dx=-\frac {\mathrm {sinh}\left (a+\frac {b}{x^2}\right )}{2\,b} \]

[In]

int(cosh(a + b/x^2)/x^3,x)

[Out]

-sinh(a + b/x^2)/(2*b)